{template header}
{if $strTopic['music']}

<script type="text/javascript" src="{SITE_URL}public/js/audio-player/audio-player.js"></script>  
<script type="text/javascript">  
AudioPlayer.setup("{SITE_URL}public/js/audio-player/player.swf", {   
	width: 290   
});   
</script>
{/if}
<style>
.group_block_list ul li{ float:left; display:inline; margin:15px 20px 5px 8px; }
.group_item55_box a{ display:block; width:87px; font-size:12px; text-align:center;}
.group_item55_box a img{ width:55px; height:55px; border:1px #e5e5e5 solid; display:block; overflow:hidden; margin:0 auto 3px auto;}
.group_item55_box a:hover img{ border:1px #333 solid;}
.group_item55_box a span.name{font-family:Arial, "锟斤拷锟斤拷"; line-height:1.231;text-overflow:ellipsis; white-space:nowrap;display:block; overflow:hidden; }
.group_item55_box a span.counts{ font-size:10px; color:#999;}

.group_item55_list{ position:relative; font-size:12px; min-height:60px; _height:60px; padding-left:65px;}
.group_item55_list a img{ position:absolute; top:0; left:0; border:1px #e5e5e5 solid; width:55px; height:55px; overflow:hidden;}
.group_item55_list a:hover img{ border:1px #333 solid;}
.group_item55_list a strong{ font-size:14px; font-weight:normal;}
.group_item55_list p.counts{ color:#666; line-height:2;}
.group_item55_list p.info{ color:#999; line-height:1.5;}

.group_item35_list{ position:relative; font-size:12px; min-height:38px;_height:38px; padding-left:42px;}
.group_item35_list a img{ position:absolute; top:0; left:0; border:1px #e5e5e5 solid; width:35px; height:35px;  overflow:hidden;}
.group_item35_list a:hover img{ border:1px #333 solid;}
.group_item35_list a p{ line-height:1.5;}
.group_item35_list p.time{ color:#aaa;}
.subjectwrap{position:relative;float:left;width:100%;margin-bottom:15px}
.thumbnail{overflow:hidden;max-width:400px;max-height:400px;}
.newtopic{}
.newtopic ul{}
.newtopic ul li{border-top: 1px dashed #CCCCCC;padding: 5px 0;}

.title2{float:right;border: 1px solid #999999;border-bottom:none;}
.title2 li{width:150px;border-bottom: 1px solid #999999;font-size:12px;padding:5px;line-height: 15px;overflow: hidden;white-space: nowrap;text-overflow: ellipsis;}

</style>

{if $TS_USER['user']['userid']}
<style>#recipientsTips{margin-top:10px;*margin-top:0px;position:absolute;z-index:9;background-color:#fff;padding:5px 10px 10px;line-height:30px;-moz-border-radius:3px;-khtml-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;-moz-box-shadow:0 0 3px #999999;-webkit-box-shadow:0 0 3px #999999;border:1px solid #ABADB3\9;*border:1px solid #ABADB3;}.autoSelected{background:#E0E0E0; font-family:Tahoma, Arial;width:120%;margin-left:-10px;cursor:pointer;"}
</style>
{/if}

<link rel="stylesheet" href="{SITE_URL}public/js/fancybox/jquery.fancybox-1.3.4.css" type="text/css" media="screen" />

<div class="midder">
<div class="mc">

{template menu}

<div class="cleft">
<h1><a href="{SITE_URL}{tsUrl('group','topic',array('id'=>$strTopic[topicid]))}">{$strTopic[title]} | {php echo date('Y-m-d H:i:s',$strTopic[addtime])} </a></h1>

<div class="sub-item"  style="text-align:left;height:110px;width: 70%;"><div class="pic" style="width:96px;"><img src="$data[2]" style="width:100%; height:100%"/></div><div class="info">歌名：$data[4]<p>歌手：$data[5]</p><p>专辑：$data[4]</p><p>分享：<a href="{SITE_URL}{tsUrl('group','user',array('id'=>$strTopic[userid]))}" rel="face" uid="$strTopic[userid]">{$strTopic[user][username]}</a></p><p><embed src="http://st.xiami.com/res/player/widget/singlePlayer.swf?dataUrl=http://data.xiami.com/widget/xml-single/sid/{$data[1]}&autoplay=y" type="application/x-shockwave-flash" width="257" height="33" wmode="transparent" /></p></div></div><div style="float:right; color:#369; cursor:pointer;" onclick="lrc('{$data[1]}',this)">&gt;&gt;显示歌词</div>






<div class="topic-content clearfix">
<div class="user-face">

<br />
{php doAction('topic_face_footer',$strTopic)}
</div>
<div class="topic-doc">

<div class="topic-view">




{$data[0]}
<div style="background: #F8F8F8;white-space: pre-wrap;white-space: -moz-pre-wrap;white-space: -pre-wrap;white-space: -o-pre-wrap;
word-wrap: break-word;border: 1px dashed #CCC;padding: 5px;font-family: Georgia, Times New Roman, Times, serif;line-height: 2em;display:none" id="lrc"></div>


</div>
<!--{if $TS_USER[user][userid] == $strTopic[userid] || $TS_USER[user][userid]==$strGroup[userid] ||$strGroupUser[isadmin]=="1" || $TS_USER[user][isadmin]=="1"}-->
<div style="text-align:right;">
&gt;&nbsp; <a href="{SITE_URL}index.php?app=group&ac=do&ts=topic_isclose&topicid={$strTopic[topicid]}"><!--{if $strTopic[isclose]=='0'}-->关闭<!--{else}-->打开<!--{/if}--></a> 



&gt;&nbsp; <a href="javascript:;" style="color:{php echo color($strTopic[color])}" onClick="$('.cmen').toggle();">高亮</a>

<!--{if $TS_USER[user][userid]==$strGroup[userid] ||$strGroupUser[isadmin]=="1" || $TS_USER[user][isadmin]=="1"}-->
&gt;&nbsp; <a href="{SITE_URL}index.php?app=group&ac=do&ts=topic_istop&topicid={$strTopic[topicid]}"><!--{if $strTopic[istop]=='0'}-->置顶<!--{else}-->取消置顶<!--{/if}--></a> 

&gt;&nbsp; <a href="{SITE_URL}index.php?app=group&ac=do&ts=isposts&topicid={$strTopic[topicid]}"><!--{if $strTopic[isposts]==0}-->精华<!--{else}-->取消精华<!--{/if}--></a>

&gt;&nbsp; <a href="{SITE_URL}index.php?app=group&ac=do&ts=topic_isshow&topicid={$strTopic[topicid]}"><!--{if $strTopic[isshow]=='0'}-->隐藏<!--{else}-->显示<!--{/if}--></a>
&gt;&nbsp; <a href="{SITE_URL}index.php?app=group&ac=topic_move&groupid={$strGroup[groupid]}&topicid={$strTopic[topicid]}">移动</a>

<!--{/if}-->
 &gt;&nbsp; <a href="{SITE_URL}index.php?app=group&ac=do&ts=deltopic&topicid={$strTopic['topicid']}" onclick="return confirm('确定删除?')">删除</a>
</div>

<div class="cmen" style="position:absolute; margin: 10px 230px;display:none;">

<!--{loop $color $i $val}-->
<a href="{SITE_URL}index.php?app=group&ac=do&&ts=topic_color&topicid={$strTopic[topicid]}&color={php echo $i+1;}" style="background-color:{$val}"></a>
<!--{/loop}-->
</div>
<!--{/if}-->

<!--补贴-->

<div>
{loop $strTopic['after'] $key $item}
{if $item['title']}
<h4><a name="title{$item['id']}"></a>{$item['title']}</h4>
{/if}
<p style="font-size:14px;line-height:30px;">
{if $item['photo']}
<a class="grouped_elements" href="{SITE_URL}uploadfile/after/{$item['photo']}" title="{$strTopic['title']}" alt="{$strTopic['title']}">
<img src="{SITE_URL}{php echo tsXimg($item[photo],'after',500,'',$item[path])}" alt="{$item['title']}" title="{$item['title']}" />
</a>
<br />
{/if}

{if $item['attach']}
附件下载：<a href="{SITE_URL}uploadfile/after/{$item['attach']}">{$item['attachname']}</a>
<br />
{/if}

{$item['content']}
{if  $item['userid'] == $TS_USER['user']['userid'] || $TS_USER['user']['isadmin']==1}
<br />
<span style="font-size:12px;">
<a href="{SITE_URL}{tsUrl('group','after',array('ts'=>'edit','id'=>$item['id']))}">编辑</a>
<a href="{SITE_URL}{tsUrl('group','after',array('ts'=>'delete','id'=>$item['id']))}" onclick="return confirm('确定删除?')">删除</a>
<a href="#">上移</a>
<a href="#">下移</a>
</span>
{/if}
</p>
{/loop}
{if $strTopic['userid'] == $TS_USER['user']['userid'] || $TS_USER['user']['isadmin']==1}
<a style="font-size:12px;background:#F0F0F0;" href="{SITE_URL}{tsUrl('group','after',array('topicid'=>$strTopic['topicid']))}">继续补贴</a>
{/if}


<!--签名-->
<!--{if $strTopic[user][signed] != ''}-->
<div class="signed">{$strTopic[user][signed]}</div>
<!--{/if}-->

</div>
</div>
<div class="clear"></div>
<div style=" float:left;">猜你喜欢：{if $g_lists==''}你的道行太深了，老衲看不出来你喜欢什么！{/if}<!--{loop $g_lists $key $v}--><span {if $key>0} style="display:none" {/if} id="g_{$key}" ><a href="{SITE_URL}{tsUrl('group','topic',array('id'=>$v[topicid]))}">$v['title']</a>  <a href="javascript:next($key)" style="color:#99776B">换一个</a></span><!--{/loop}-->  </div>
<script>
function next(o){
var n=o+1;

var m='0';

if(o==m) $('#g_'+o).html('没有了'); 

else

$('#g_'+o).remove();

$('#g_'+n).show();

}


</script>
<div class="clear"></div>
{if $TS_USER['user']}
{php doAction('topic_right',$strTopic)}
{/if}

<div class="clear"></div>


{if $j}
<div class="group_block_list">
					<h2>关于<strong>《{$data[4]}》</strong>专辑</h2>
					<ul class="clearfix">
						{loop $thread $key $v}
						{php  $m=explode(',', $v['content']);}
							<li>
								<div class="group_item55_box"> 
								<a title="$v[title]" href="{SITE_URL}{tsUrl('group','topic',array('id'=>$v[topicid]))}">
								<img width="55" height="55" alt="$m[3]" src="$m[2]">
								<span class="name vicos">$m[3]</span>
								<span class="counts">评论:$v[count_comment]</span></a>
								 </div>
							</li>
							{/loop}
				    </ul>
</div>

			{/if}	
<div class="clear"></div>			
{php doAction('topic_footer',$strTopic,'468')}
<div class="clear"></div>
<!--tag标签-->
<div class="tags">
<!--{loop $strTopic[tags] $key $item}-->
<a rel="tag" title="" class="post-tag" href="{SITE_URL}{tsUrl('group','tag',array('name'=>urlencode($item[tagname])))}">{$item[tagname]}</a>
<!--{/loop}-->
<!--{if $isGroupUser}-->
<a rel="tag" href="javascript:void(0);" onclick="showTagFrom()">标签</a>
<!--{/if}-->

<p id="tagFrom" style="display:none">
<input style="width:250px;padding:3px 2px;" type="text" name="tags" id="tags" /> <button type="submit" class="subab" onclick="savaTag({$topicid})">添加</button> <a href="javascript:void(0);" onclick="showTagFrom()">取消</a>
</p>


</div>


<div class="clear"></div>
<div>
{if $upTopic}上一篇：<a href="{SITE_URL}{tsUrl('group','topic',array('id'=>$upTopic['topicid']))}">{$upTopic['title']}</a>{/if}

{if $downTopic}<br />下一篇：<a href="{SITE_URL}{tsUrl('group','topic',array('id'=>$downTopic['topicid']))}">{$downTopic['title']}</a>{/if}
</div>
	
<!--{if $page == '1'}-->
<div style="text-align:right;">
<!--{if $sc=='asc'}-->
<a href="{SITE_URL}{tsUrl('group','topic',array('id'=>$topicid,'sc'=>'desc'))}">倒序阅读</a>
<!--{else}-->
<a href="{SITE_URL}{tsUrl('group','topic',array('id'=>$topicid))}">正序阅读</a>
<!--{/if}-->
</div>

<!--{/if}-->

<!--comment评论-->
<ul class="comment">
<!--{if is_array($arrTopicComment)}-->
<!--{loop $arrTopicComment $key $item}-->
<li class="clearfix" id="l_{$item[commentid]}">
<div class="user-face">
<a href="{SITE_URL}{tsUrl('group','user',array('id'=>$item[user][userid]))}" rel="face" uid="$item[user][userid]"><img title="{$item[user][username]}" alt="{$item[user][username]}" src="{$item[user][face]}" width="48" /></a>
</div>
<div class="reply-doc">
<h4>{php echo date('Y-m-d H:i:s',$item[addtime])}
	<a href="{SITE_URL}{tsUrl('group','user',array('id'=>$item[user][userid]))}" rel="face" uid="$item[user][userid]">{$item[user][username]}</a>
    <i style="float:right;">$item[l]#</i>
</h4>


<!--{if $item[referid] !='0'}-->
<div class="recomment"><a href="{SITE_URL}{tsUrl('group','user',array('id'=>$item[recomment][user][userid]))}"><img src="{$item[recomment][user][face]}" width="24" align="absmiddle"></a> <strong><a href="{SITE_URL}{tsUrl('group','user',array('id'=>$item[recomment][user][userid]))}" rel="face" uid="$item[recomment][user][userid]">{$item[recomment][user][username]}</a></strong>：{php echo nl2br($item[recomment][content])}</div>
<!--{/if}-->
<p>
{if $item['photo']}
<a class="grouped_elements" href="{SITE_URL}uploadfile/comment/{$item['photo']}" title="{$strTopic['title']}" alt="{$strTopic['title']}">
<img src="{SITE_URL}{php echo tsXimg($item[photo],'comment',500,'',$item[path])}" alt="{$strTopic['title']}" title="{$strTopic['title']}" />
</a>
<br />
{/if}

{if $item['attach']}
附件下载：<a href="{SITE_URL}uploadfile/comment/{$item['attach']}">{$item['attachname']}</a>
<br />
{/if}

{php echo nl2br($item[content])}
</p>

<!--签名-->
<!--{if $item[user][signed] != ''}-->
<div class="signed">{php echo nl2br($item[user][signed])}</div>
<!--{/if}-->


<div class="group_banned">
<!--{if $isGroupUser != '0'}-->
<span><a href="javascript:void(0)"  onclick="commentOpen({$item[commentid]},{$item[topicid]})">回复</a></span>
<!--{/if}-->

<!--{if $TS_USER[user][userid] == $strGroup[userid] || $TS_USER[user][userid] == $item[userid] || $strGroupUser[isadmin]==1 || $TS_USER[user][isadmin]==1}-->
<span><a class="j a_confirm_link" href="{SITE_URL}index.php?app=group&ac=comment&ts=delete&commentid={$item[commentid]}" rel="nofollow" onclick="return confirm('确定删除?')">删除</a>
</span>
<!--{/if}-->
</div>


<div id="rcomment_{$item[commentid]}" style="display:none">
<textarea style="width:90%;height:60px;font-size:14px;" id="recontent_{$item[commentid]}" type="text" onkeydown="keyRecomment({$item[commentid]},{$item[topicid]},event)"></textarea>
<p><a href="javascript:void(0);" onclick="recomment({$item[commentid]},{$item[topicid]})" id="recomm_btn_$item[commentid]">提交回复 (Ctrl+Enter)</a></p>
</div>
</div>
<div class="clear"></div>
</li>
<!--{/loop}-->
<!--{/if}-->
</ul>

<div class="page">{$pageUrl}</div>

<h2>你的回应</h2>
<div style="background:#f4f4ec;padding:10px;">
<!--{if intval($TS_USER[user][userid])==0}-->
<div style="border:solid 1px #DDDDDD; text-align:center;padding:20px 0"><a href="{SITE_URL}{tsUrl('user','login')}">登录</a> | <a href="{SITE_URL}{tsUrl('user','register')}">注册</a></div>
<!--{elseif $isGroupUser == 0}-->
不是本组成员不能回应此贴哦
<!--{elseif $strTopic[iscomment] == 1 && $strTopic[userid] != $TS_USER[user][userid]}-->
本帖除作者外不允许任何人评论
<!--{else}-->

<form method="POST" action="{SITE_URL}index.php?app=group&ac=comment&ts=do" onSubmit="return submitonce(this)" id="formMini" enctype="multipart/form-data">

<table>

<tr><td width="40" valign="top">内容*</td><td><textarea  style="width:100%;height:70px;font-size:14px;" id="editor_mini" name="content"></textarea></td></tr>
<tr><td>图片：</td><td><input type="file" name="picfile" /> (仅支持jpg,gif,png格式图片)</td></tr>
<tr><td>附件：</td><td><input type="file" name="attfile" /> (仅支持zip,rar,dic,txt,pdf,ppt,docx,xls,xlsx格式附件)</td></tr>

<tr><td></td><td><input type="hidden" name="topicid" value="{$strTopic[topicid]}" />
<input class="submit" type="submit" value="加上去(Crtl+Enter)" style="margin:10px 0px" /></td></tr>

</table>
</form>
<!--{/if}-->

</div>

</div>
</div>

<div class="cright">
<p class="pl2"><a href="{SITE_URL}{tsUrl('group','show',array('id'=>$strGroup[groupid]))}">返回{$strGroup[groupname]}</a></p>
<p>
<a class="submit" href="{SITE_URL}{tsUrl('group','add',array('groupid'=>$strGroup[groupid]))}">
发布帖子
</a>
</p>

<div>

<h2>谁喜欢这篇帖子</h2>
<script>topic_collect_user('{$strTopic[topicid]}')</script>
<div id="collects">
<div style="padding:10px;text-align:center;"><img src="{SITE_URL}public/images/loading.gif" />正在加载中......</div>
</div>
</div>

<h2 class="usf">最新话题</h2>
<div class="indent newtopic">
<ul>
<!--{loop $newTopic $key $item}-->
<li><a title="{$item[title]}" href="{SITE_URL}{tsUrl('group','topic',array('id'=>$item[topicid]))}">{$item[title]}</a> 
</li>
<!--{/loop}-->
</ul>
</div>

<div class="clear"></div>
{php doAction('group_topic_right_footer',$strTopic,'300')}
</div>

</div>
</div>
<script type="text/javascript" src="{SITE_URL}public/js/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
<script type="text/javascript" src="{SITE_URL}public/js/fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
<script>
$(document).ready(function() {
	$("a.grouped_elements").fancybox();
});
var isclose=0;
function lrc(songid,o){
if(isclose==0){
  $('#lrc'). fadeIn('slow').html('歌词加载中。。。');
  $.post("{SITE_URL}app/group/thread/music/action.php",{ac:'lrc',songid:songid},function(h){
    if(h=='-1'){
	 $('#lrc').html('没有歌词');
  
   }else{
     $('#lrc').html(h);
	 $(o).html('&gt;&gt;关闭歌词');
	 isclose=1;
   }
 });
 }else{
 $('#lrc').fadeOut();
  $(o).html('&gt;&gt;显示歌词');
 isclose=0;
 }
}
</script>
{if $TS_USER['user']['userid']}
<script src="{SITE_URL}app/group/js/usertips.js" type="text/javascript"></script>
<script>userAutoTips({id:'editor_mini'});</script>
{/if}
{template footer}